package 第十章.非阻塞队列.CopyOnWriteArraySet.test2;

public class ThreadB extends Thread {

	private MyServiceB service;

	public ThreadB(MyServiceB service) {
		super();
		this.service = service;
	}

	@Override
	public void run() {
		for (int i = 0; i < 100; i++) {
			service.set.add(Thread.currentThread().getName() + "anyString" + (i + 1));
		}
	}
}
